{% extends "cms_bootstrap.html" %}
{% load static %}
{% block titleblock %}
	CMS登录
{% endblock titleblock %}

{% block headblock %}
	<link rel="stylesheet" href="{% static 'css/cms_login.css' %}">
    <script src='{% static "js/cms_login.js" %}'></script>
{% endblock headblock %}

{% block bodyblock %}
	<div class="container">
  		<form class="form-signin" role="form" method='POST'>
  			{%csrf_token%}
    		<h2 class="form-signin-heading">请登录</h2>
    		<input type="text" class="form-control" placeholder="用户名" name="username" required autofocus>
    		<input type="password" class="form-control" placeholder="密码" name="password" required>
            <div class="input-group">
                <input type="text" class="form-control" required placeholder="验证码" name="captcha">
                <span class="input-group-addon">
                    <img src="{% url 'common_captcha' %}" alt="点击刷新验证码" class="captcha-img">
                </span>
            </div>
    		<p class="text-danger error-p">{{error}}</p>
    		<div class="checkbox">
      			<label>
        		<input type="checkbox" value="remember-me" name='remember'> 记住我
      			</label>
    		</div>
    		<button class="btn btn-lg btn-primary btn-block" type="submit">登录</button>
  		</form>	
	</div>
{% endblock bodyblock %}